package com.kingyun.gpsinspection.purificationservice.facade.service.som;


import com.kingyun.gpsinspection.purificationservice.facade.model.som.AppErrorLog;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.AppVersion;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.ItemValue;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.Opc;

import java.util.List;

/**
 * Created by yangcs on 2017/4/24.
 */
public interface FacadeAppService {
    /**
     * 新增错误日志
     * @param appErrorLog
     * @return
     */
    int insertErrorLog(AppErrorLog appErrorLog);

    /**
     * 检查版本更新
     * @return
     */
    AppVersion checkUpdate();

    /**
     * 查询opc列表
     * @param userId
     * @param limit
     * @param offset
     * @param keyword
     * @return
     */
    List<Opc> queryList(String userId, int limit, int offset, String keyword);

    /**
     * 查询最近12条实时数据
     * @param dataSrcItemId
     * @return
     */
    List<ItemValue> queryList(String dataSrcItemId);
}
